import React, { Component } from 'react'
import Mouse from './Mouse'
import Cat from './Cat'
import { withPosition } from './HOC'

const EnhancedMouse = withPosition(Mouse)
const EnhancedCat = withPosition(Cat)

export default class Index extends Component {
  componentDidMount () {
    console.log('111')
  }
  render () {
    return (
      <div>
        <EnhancedMouse />
        <EnhancedCat />
      </div>
    )
  }
}
